package com.example.redis.common.enums;

import lombok.Getter;

/**
 *  系统接口响应编码
 * @Description  ResponseCode
 * @Author guoyb
 * @Date   2023/7/26 9:53
 */
@Getter
public enum ResponseCode {

    SUCCESS(200, "操作成功"),
    ERROR(500, "系统异常"),
    METHOD_ARGUMENT_NOT_VALID(1001, "参数校验异常"),
    VALID_CONT_ERROR(1018, "表格数据量过大"),
    LOGIN_NOTFOUND(1008, "登录用户信息为空"),
    THIRD_INTERFACE_FAIL(1003, "调用接口异常"),
    DATA_IS_EXIST(1005, "数据已存在"),
    DATA_NOT_FOUND(1006, "数据不存在"),
    DATA_NOT_DEL(1007, "数据不可删除"),
    CONNECT_TIMEOUT(1010, "http请求超时"),
    FILE_UPLOAD_ERROR(1014, "文件读取失败,请联系管理员"),
    FILE_EXPORT_ERROR(1025, "文件导出失败,请联系管理员");


    private int code;
    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
